package main

import (
	"fmt"
)

func main(){
	fmt.Println("没有while/do-while循环语法!!!!!!!")
	var total int = 10

	for i := 1;i <= total;i++ {
		for k := 1;k<= total - i;k++{
			fmt.Print(" ")
		}
		for j := 1;j <= i * 2 - 1;j++ {
			if j == 1 || j == i * 2 - 1{
				fmt.Print("*")
			}else{
				fmt.Print(" ")
			}
			
		}
		fmt.Println()
	}
	for i := total-1;i >= 1;i--{
		for k := 1;k<= total - i;k++{
			fmt.Print(" ")
		}
		for j := 1;j <= i * 2 - 1;j++ {
			if j == 1 || j == i * 2 - 1{
				fmt.Print("*")
			}else{
				fmt.Print(" ")
			}
			
		}
		fmt.Println()
	} 
}